Optimal. Leaf size=53 \[ \frac {b e n \sqrt {x}}{d}+a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-\frac {b e^2 n \log \left (e+d \sqrt {x}\right )}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2498, 269, 196,
45} \begin {gather*} a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-\frac {b e^2 n \log \left (d \sqrt {x}+e\right )}{d^2}+\frac {b e n \sqrt {x}}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 196
Rule 269
Rule 2498
Rubi steps
\begin {align*} \int \left (a+b \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )\right ) \, dx &=a x+b \int \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right ) \, dx\\ &=a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )+\frac {1}{2} (b e n) \int \frac {1}{\left (d+\frac {e}{\sqrt {x}}\right ) \sqrt {x}} \, dx\\ &=a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )+\frac {1}{2} (b e n) \int \frac {1}{e+d \sqrt {x}} \, dx\\ &=a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )+(b e n) \text {Subst}\left (\int \frac {x}{e+d x} \, dx,x,\sqrt {x}\right )\\ &=a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )+(b e n) \text {Subst}\left (\int \left (\frac {1}{d}-\frac {e}{d (e+d x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\frac {b e n \sqrt {x}}{d}+a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-\frac {b e^2 n \log \left (e+d \sqrt {x}\right )}{d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 62, normalized size = 1.17 \begin {gather*} a x+b x \log \left (c \left (d+\frac {e}{\sqrt {x}}\right )^n\right )-b e n \left (-\frac {\sqrt {x}}{d}+\frac {e \log \left (d+\frac {e}{\sqrt {x}}\right )}{d^2}+\frac {e \log (x)}{2 d^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 94, normalized size = 1.77
method | result | size |
default | \(a x +x b \ln \left (c \left (\frac {e +d \sqrt {x}}{\sqrt {x}}\right )^{n}\right )+\frac {b e n \sqrt {x}}{d}+\frac {b \,e^{2} n \ln \left (d \sqrt {x}-e \right )}{2 d^{2}}-\frac {b \,e^{2} n \ln \left (e +d \sqrt {x}\right )}{2 d^{2}}-\frac {b \,e^{2} n \ln \left (d^{2} x -e^{2}\right )}{2 d^{2}}\) | \(94\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 52, normalized size = 0.98 \begin {gather*} -{\left (n {\left (\frac {e \log \left (d \sqrt {x} + e\right )}{d^{2}} - \frac {\sqrt {x}}{d}\right )} e - x \log \left (c {\left (d + \frac {e}{\sqrt {x}}\right )}^{n}\right )\right )} b + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 93, normalized size = 1.75 \begin {gather*} \frac {b d^{2} x \log \left (c\right ) - b d^{2} n \log \left (\sqrt {x}\right ) + b d n \sqrt {x} e + a d^{2} x + {\left (b d^{2} n - b n e^{2}\right )} \log \left (d \sqrt {x} + e\right ) + {\left (b d^{2} n x - b d^{2} n\right )} \log \left (\frac {d x + \sqrt {x} e}{x}\right )}{d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.46, size = 76, normalized size = 1.43 \begin {gather*} a x + b \left (\frac {e n \left (\frac {2 \sqrt {x}}{d} - \frac {2 e^{2} \left (\begin {cases} \frac {1}{d \sqrt {x}} & \text {for}\: e = 0 \\\frac {\log {\left (d + \frac {e}{\sqrt {x}} \right )}}{e} & \text {otherwise} \end {cases}\right )}{d^{2}} + \frac {2 e \log {\left (\frac {1}{\sqrt {x}} \right )}}{d^{2}}\right )}{2} + x \log {\left (c \left (d + \frac {e}{\sqrt {x}}\right )^{n} \right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.15, size = 56, normalized size = 1.06 \begin {gather*} -{\left ({\left ({\left (\frac {e \log \left ({\left | d \sqrt {x} + e \right |}\right )}{d^{2}} - \frac {\sqrt {x}}{d}\right )} e - x \log \left (d + \frac {e}{\sqrt {x}}\right )\right )} n - x \log \left (c\right )\right )} b + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.38, size = 44, normalized size = 0.83 \begin {gather*} a\,x+b\,x\,\ln \left (c\,{\left (d+\frac {e}{\sqrt {x}}\right )}^n\right )-\frac {b\,e\,n\,\left (e\,\ln \left (e+d\,\sqrt {x}\right )-d\,\sqrt {x}\right )}{d^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________